package marlon.sjf;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.Properties;

/**
 * @author marlonyao<yaolei135@gmail.com>
 *
 */
public class SJFThreadLocals {
	public static final ThreadLocal<InputStream> STDIN = new InheritableThreadLocal<InputStream>();
	public static final ThreadLocal<OutputStream> STDOUT = new InheritableThreadLocal<OutputStream>();
	public static final ThreadLocal<OutputStream> STDERR = new InheritableThreadLocal<OutputStream>();
	
	public static final InheritableThreadLocal<Properties> SYSPROPS = new InheritableThreadLocal<Properties>() {
		 protected Properties childValue(Properties parentValue) {
		    return (Properties)parentValue.clone();
		 }
	};
}
